projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7ea581
)
(assert) [__MINGW32__]: Redefine assert to work around a
author
Andrew Innes
<andrewi@gnu.org>
Tue, 30 Jan 2001 18:11:42 +0000
(18:11 +0000)
committer
Andrew Innes
<andrewi@gnu.org>
Tue, 30 Jan 2001 18:11:42 +0000
(18:11 +0000)
bug in the Mingw32 assert.h header file.
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index 1e1478886b66c2b91d89aa7cbc9b3b9829f8d554..e17aefbc557f4d1699d2d827221ae3eecbe6ebba 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-126,6
+126,12
@@
char pot_etags_version[] = "@(#) pot revision number is 14.13";
#include <sys/types.h>
#include <sys/stat.h>
+/* Work around bug in Mingw assert.h. */
+#if defined (__MINGW32__) && defined(NDEBUG) && defined (assert)
+#undef assert
+#define assert(x) ((void) 0)
+#endif
+
#if !defined (S_ISREG) && defined (S_IFREG)
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif